package com.csun.dsms.model.dto.yc;

import com.csun.dsms.validator.DsmsSupervisorAddValidator;
import com.csun.dsms.validator.DsmsUserAddValidator;
import com.csun.dsms.validator.DsmsUserEditValidator;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author 金秋实新增数据
 * @description: TODO
 */
@Data
public class YcDataJinDto {


    /**
     * 登录名
     */
    @NotNull(message = "设备编号不能为空")
    private String deviceId;

    /**
     * pm25
     */
    private Float pm25;
    private Float pm10;
    private Float noise;
    private Float tem;
    private Float hum;
    private Float wp;
    private Float ws;
    private Float wd;
    private Float tsp;
    private Float atm;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date datatime;
}
